package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.Client;
import com.olddriver.crm.query.ClientQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientMapper {

    int delete(Long id);

    int save(Client client);

    Client get(Long id);

    List<Client> list();

    int update(Client client);

    //修改客户的状态
    int updateStatus(@Param("id") Long id, @Param("status") Byte status);

    void updateTakeUser(Client client);

    int queryTotal(ClientQueryObject qo);

    List<Client> queryRows(ClientQueryObject qo);

    //查询所有未分配负责人的客户
    List<Client> selectNoTakeUser(ClientQueryObject qo);

    int getUnsignCount();
}